{layout name="/base" /}

<link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css" />
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=a7e2fc1a96a83283106bf583328aa248&plugin=AMap.Autocomplete"></script>
<script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
<!--载入百度编辑器所需js文件-->
<script type="text/javascript" charset="utf-8" src="/UEditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/UEditor/ueditor.all.min.js">
</script>
<script type="text/javascript" charset="utf-8" src="/UEditor/lang/zh-cn/zh-cn.js"></script>
  <div class="row">
    <div class="col-lg-12">
      <h1>企业动态管理 <small>企业动态信息列表</small></h1>
      <ol class="breadcrumb">
        <li><a href="/index"><i class="fa fa-dashboard"></i> 管理首页</a></li>
        <li class="active"><a href="/index"><i class="fa fa-table"></i> 企业动态信息列表</a></li>
        <li class="active"><i class="fa fa-table"></i> 编辑信息</li>
      </ol>
      <div class="alert alert-success alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        	这里可以修改企业动态文章
      </div>
    </div>
  </div>
	<!-- /.row -->
	<div class="row">
		<!-- 选项卡start -->
		<div class="bs-example">
			<form class="form-horizontal" action="/news" method="post">
				<!-- 选项卡内容start -->
				<div id="myTabContent" class="tab-content">
					<!-- 选项卡内容1会员类型start -->
					<div id="one" class="tab-pane fade active in">
						<!-- 基本信息start -->
						<div class="col-lg-11">
							<!-- 营地信息start -->
							<div class="form-group">
								<label class="control-label col-sm-2">标题</label>
								<div class="col-sm-6">
									<input class="form-control" type="text" name="title" value="" placeholder="请填写营地名称">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-sm-2">来源</label>
								<div class="col-sm-6">
									<input class="form-control" type="text" name="source" value="" placeholder="请填写文章来源">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-sm-2">发布人</label>
								<div class="col-sm-6">
									<input class="form-control" type="text" name="author" value="" placeholder="请填写发布人或作者">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-sm-2">正文内容</label>
								<div class="col-sm-8">
									<!--调用百度编辑器开始-->
									<script id="editor" type="text/plain" style="width:100%;height:500px;" name="content"></script>
									<script>
										UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
										UE.Editor.prototype.getActionUrl = function(action) {
											if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
												return '/uploadueditor';
											} else if (action == 'uploadvideo') {
												return 'http://a.b.com/video.php';
											} else {
												return this._bkGetActionUrl.call(this, action);
											}
										}
										var ue = UE.getEditor('editor', {
											toolbars: [
												[
													'fullscreen', 'source', '|', 'undo', 'redo', '|',
													'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
													'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
													'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
													'directionalityltr', 'directionalityrtl', 'indent', '|',
													'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
													'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
													'simpleupload', 'insertimage', 'emotion', 'map', 'gmap', 'insertframe', 'insertcode', 'background', '|',
													'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
													'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
													'print', 'preview', 'searchreplace', 'drafts', 'help'
												]
											]
										});
										ue.addListener('ready', function() {
											ue.focus();
										});
									</script>
									<!--调用百度编辑器结束-->
								</div>
							</div>
							<div class="form-group">
								<div class="btn-group mybtn col-sm-4 col-sm-offset-2">
									<button type="submit" class="btn btn-primary">提交</button>
									<!-- <button type="submit" class="btn btn-primary">预览</button> -->
								</div>
							</div>
							<!-- 营地信息end -->
						</div>
						<!-- 基本信息end -->
					</div>
					<!-- 选项卡内容1会员类型end -->
		</div>
		<!-- 选项卡内容end -->
		</form>
	</div>
	<!-- row -->